package com.blog.personalblog.entity.response;

import com.fasterxml.jackson.databind.annotation.EnumNaming;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

@JsonSerialize
public enum ReturnCode {
    Ok,                 //Operation success
    ServerNotSupport,
    ErrDuplicated,     //Target data object is already exists on Database
    ErrInvalidInfo,   //The information of data object is invalid
    ErrTimedOut,      //The request timeout or connection timeout
    ErrNoPermission,  //Current user have no permission to execute the operation
    ErrEmptyRequest,  //The data in request is empty
    ErrOtherError,     //Unhandled error
    OkWithWarn         //Operation success but with some warning (it's not error)
}
